<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="../vue.js"></script>
    <title>Document</title>
  </head>
  <body>
    <!--  -->
    <div id="app">
      <h1>插值语法</h1>
      <h2>你好,{{name}}</h2>
      <hr />
      <h1>指令语法</h1>
      <a :href="a.url">点我去{{a.name}}</a>
    </div>
    <script>
      var app = new Vue({
        el: "#app",
        data: {
          name: "jack",
          a: {
            name: 4399,
            url: "http://www.4399.com",
          },
        },
      });
    </script>
  </body>
</html>
